<template>
  <div>
    <h1>{{$route.query.title}}课程详情</h1>
    <h1>{{$route.params.title}}课程详情</h1>
    <p>path+query: {{$route.query.id}}</p>
    <p>name+params: {{$route.params.id}}</p>
    <p>path+params: {{$route.params.id}}</p>
  </div>
</template>

<script>
export default {
  mounted() {
    console.log(this.$route.query.id);
    console.log(this.$route.params.id);
    console.log(this.$route.params.id);
  }
}
</script>

<style>
</style>